'use strict';

define(['services'], function (services) {
    services.solr.register('ReplicaService', ['$resource', function ($resource) {
        return $resource('/rest/solr/replica/:id', {id: '@id'}, {
            query: {
                isArray: false
            },
            queryByCollectionId: {
                url: '/rest/solr/replica/collection/:collectionId',
                method: 'GET',
                params: {collectionId: '@collectionId'},
                isArray: true
            }
        });
    }]);
});